var url_base = 'http://192.168.1.10/admin/';

function get_datos_form(form){
	var values = {};
	$.each($(form).serializeArray(), function(i, field) {
	    values[field.name] = field.value;
	});
	
	return values;
}


function comprobarEmail(email) {
    var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    if(!regex.test(email)) {
       return false;
    }else{
       return true;
    }
  }

function stringEsValido(aux){
	if(/^[a-zA-Z0-9- ]*$/.test(aux) == false) { 
		return false; 
	}
}